package com.qf.service.impl;

import com.qf.entity.Lesson;
import com.qf.mapper.LessonMapper;
import com.qf.service.ILessonService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lcx
 * @since 2020-09-03
 */
@Service
public class LessonServiceImpl extends ServiceImpl<LessonMapper, Lesson> implements ILessonService {
    @Autowired
    LessonMapper lessonMapper;
    @Override
    public List<Lesson> selectBy(Lesson lesson) {
        List<Lesson> lessons = lessonMapper.selectBy(lesson);
        return lessons;
    }
}
